package com.axxc.jpa.pattendegign.commons;

import com.axxc.jpa.pattendegign.abstractfactory.AbstractFactory;
import com.axxc.jpa.pattendegign.abstractfactory.FactoryProduce;

/**
 * @ClassName TestAbstractFactory
 * @Description //TODO
 * @author xxc
 * @data 2018年8月30日下午9:11:56
 * @see {@link http://gitee.com/biuabiu/ }
 */
public class TestAbstractFactoryDesign {

	public static void main(String[] args) {

		AbstractFactory af = FactoryProduce.getFactory("a");
		af.getA("A1").show();
		af.getA("A2").show();

		AbstractFactory bf = FactoryProduce.getFactory("B");
		bf.getB("B1").show();

	}
}
